import request from '@/utils/request'

// 查询工序信息列表
export const GetListAPI = params => {
  return request({
    url: '/production/processTemplete/list',
    method: 'GET',
    params
  })
}

// 工艺卡模板新增
export const AddDataAPI = data => {
  return request({
    url: '/production/processTemplete/add',
    method: 'POST',
    data
  })
}

// 修改工艺卡模板
export const EditDataAPI = data => {
  return request({
    url: '/production/processTemplete/edit',
    method: 'POST',
    data
  })
}

// 删除工艺卡模板
export const DelDataAPI = data => {
  return request({
    url: '/production/processTemplete/delete/' + data,
    method: 'DELETE'
  })
}

// 查看工艺卡模板
export const GetViewAPI = data => {
  return request({
    url: '/production/processTemplete/view/' + data,
    method: 'GET'
  })
}
